package com.daodao.daodaoschedule.application.service;

import com.daodao.daodaoschedule.domain.wechat.WechatSendConfig;
import com.daodao.daodaoschedule.infrastructure.constant.WechatMessageTypeEnum;
import com.daodao.daodaoschedule.infrastructure.repository.WechatSendConfigRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author mal
 * @date 2023-02-15 15:09
 */
@Service
@AllArgsConstructor
public class WechatSendConfigServiceImpl implements WechatSendConfigService{

    private final WechatSendConfigRepository wechatSendConfigRepository;

    @Override
    public WechatSendConfig getMessageTemplate(WechatMessageTypeEnum messageType, Long accountId) {
        return wechatSendConfigRepository.getMessageTemplate(messageType, accountId);
    }
}
